<?php
	function view_not_logued_as_admin()
	{
		return '<h1 style="color: red;">
				Pour voir acc&eacute;der &agrave; cette section vous devez &ecirc;tre connect&eacute; en tant que super-utilisateurs.
				<h1>';
	}
	
	function view_users_informations( $users)
	{
		$str= "";
		$line= 1;
               	
		foreach( $users as $user)
		{			
			$str.= '
				<div id="users_view">
					<div id="user_line">
						<div class="user_login"> Nom : '. $user['user_login'] .'</div>
						<div class="user_email"> E-mail : '. $user['user_email'] .'</div>
						<div class="user_type"> Type d\'utilisateur : '. $user['user_type_name'] .'</div>
					<div>
					<a class="event_delete" href="'. URL_CONTROLLERS .'users_rights_configuration_controller.php?delete='. $user['id_user'] .'">Supprimer</a>
					<a class="event_validate" style="background-color: darkgrey;" href="'. URL_CONTROLLERS .'users_rights_configuration_controller.php?set_admin='. $user['id_user'] .'">Admin</a>
					<a class="event_validate" href="'. URL_CONTROLLERS .'users_rights_configuration_controller.php?set_normal='. $user['id_user'] .'">Normal</a>
				</div>';
			
			$line= ($line) ? 0 : 1; 
		}
		return $str;
          
	}
	
	function view_no_more_users_left()
	{
		return '
			<h1 style="color: blue;">
				Aucun compte utilisateur n\'a &eacute;t&eacute; cr&eacute;&eacute;.
			<h1>';
	}
?>